package user

import "time"

type CommonUserBindFailRecord struct {
	//聚合用户id，common_user_data的uid
	CommonUserDataUid string
	//创建时间
	CreatedTime time.Time `gorm:"default:CURRENT_TIMESTAMP"`
	//错误信息
	FailMsg string
	//主键ID
	ID uint32 `gorm:"primary_key"`
	//是否删除
	IsDeleted int32 `gorm:"default:0"`
	//手机号
	MobilePhone string
	//修改时间
	ModifiedTime time.Time `gorm:"default:CURRENT_TIMESTAMP"`
	//小程序openid
	MpOpenid string
	//公众号openid
	Openid string
	//微信unionid
	Unionid string
	//绑定类型：1：小程序，2：公众号
	WechatType int32 `gorm:"default:0"`
}

func (p CommonUserBindFailRecord) TableName() string {
	return "common_user_bind_fail_record"
}
